<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class User extends Model {
    use HasDateTimeFormatter;
    protected $table = 'users'; 
    public function orders(){
        return $this->hasMany(Order::class,'user_id','id');
    } 
}
